import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "node:path";

// https://vitejs.dev/config/
export default defineConfig({
  base: "./",
  resolve: {
    // 路径缩写
    alias: {
      "@": path.resolve(__dirname, "./src"),
      public: path.resolve(__dirname, "./public"),
      settings: path.resolve(__dirname, "./settings"),
      theme: path.resolve(__dirname, "./src/assets/styles/themes"),
    },
  },
  plugins: [vue()],
});
